package com.woniuxy.credit_loans.mapper;

import com.woniuxy.credit_loans.entity.SysPermission;
import com.woniuxy.credit_loans.staff_dong.dto.PerDto;
import com.woniuxy.credit_loans.staff_dong.vo.PermissionVo;
import com.woniuxy.credit_loans.staff_dong.vo.TreeNode;

import java.util.List;

/**
* @author donghang
* @description 针对表【sys_permission(sys_permission)】的数据库操作Mapper
* @createDate 2022-12-06 12:05:35
* @Entity com.woniuxy.credit_loans.entity.SysPermission
*/
public interface SysPermissionMapper {

    List<PermissionVo> selMenuByAcc(String empAcc,Integer parentId);

    int deleteByPrimaryKey(Long id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    List<TreeNode> selectAllPer(Integer parentId);

    List<Integer> selectPerByRoleId(Integer roleId);

    int deleteByRoleId(Long RoleId);

    int insertPer(PerDto perDto);

}
